package vip.kassadin.ex;

import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class AppWideExceptionHandler {

    @ExceptionHandler(EmptyResultDataAccessException.class)
    public String duplicateUserHandler(EmptyResultDataAccessException ex) {
        return "not found";
    }
}